package com.learn.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.learn.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author DJJ_F
 * @version 1.0
 * @date 2025/08/08
 * @description ch12 sentinel
 * 测试整合openfeign
 */
//@FeignClient(value = "nacos-payment-provider")
public interface TestFeignApi {
//    @GetMapping("/pay/get/sentinel/{id}")
    @RequestMapping(value = "/pay/get/sentinel/{id}", method = RequestMethod.GET)
    Result<String> getSentinel(@PathVariable("id") Integer id);
}
